package com.it.demo013;

import java.util.concurrent.ArrayBlockingQueue;

public class Demo {
    public static void main(String[] args) throws InterruptedException {
        ArrayBlockingQueue<String> list = new ArrayBlockingQueue<>(1);
        //存元素
//        arrayBlockingQueue.put("汉堡包");
//        System.out.println(arrayBlockingQueue.take());
        Cooker c = new Cooker(list);
        Foodie f = new Foodie(list);
        c.start();
        f.start();


    }
}
